<table class="listing">
  <tr>  
  <thead>
    <th >姓名</th>
    <th >email</th>
    <th >部门</th>
    <th width="8%">编辑</th>
    <th width="8%">删除</th>
  </thead>
  </tr>
<% @readers.each_with_index do |reader,i| %>
  <tr class="line<%=i%2%>">
    <td><%=link_to reader.reader_name, {:action => 'show' , :id => reader },:title=>"用户详细信息" ,:rel=>"gb_page_center[500, 550]"%></td>
    <td><%=h reader.email %></td>
    <td><%=h reader.department.name %></td>
    <td ><%= link_to image_tag("edit.gif",:size => "16x16"), :action => 'edit', :id => reader %></td>
    <td ><%= link_to image_tag("delete.gif",:size => "16x16"), { :action => 'destroy', :id => reader}, :confirm => '确认删除?', :post => true %></td>
  </tr>
<% end %>
</table>

<%=render :partial => 'shared/paginate' , :object => @readers_pages%>